import server from '../utils/request.js'


// 渲染数据
export function DrugDatilApi(params){
    return server({
        url:'/DrugDatilData',
        method:'get',
        params,
    })
}
//渲染list数据
export function DrugListApi(params){
    return server({
        url:'/DrugListData',
        method:'get',
        params,
    })
}
// 删除数据
export function DeleteDrugApi(data){
    return server({
        url:'/deleteDrug',
        method:'post',
        data,
    })
}

//添加数据
export function addDrugApi(data){
    return server({
        url:'/addDrug',
        method:'post',
        data,
    })
}